package com.example.myapplication2

import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity

class cActivity : AppCompatActivity() {



    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)



        val fileName = getExternalFilesDir(null)!!.absoluteFile
        Log.e("tag-->","data---$fileName")
        var aa = LogWriter(fileName)

        test1(1){


            var list = mutableListOf<String>()
            list.add("aaa")
            list.add("bbb")
            list.add("ccc")
            Log.e("total-->","${list.size}")
            "asd"
        }



    }


    fun test1(num:Int,linistner:()->Unit){
        linistner()
    }


    fun bt1(v: View){
        val test =  singleClass
        println("weither only--->$test")
        startActivity(Intent(this,bActivity::class.java))


    }

}